<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>

<body>

<form:form acceptCharset="UTF-8" commandName="utente" id="formUtente" action="wizardCreateUser.do?_target1"
	method="post">

	<input type="hidden" name="_page" value="0" />
	<table width="600" border="0" align="center">
		<tr>
			<td><a href="esci.do">Esci</a></td>
		</tr>
	</table>
	<table width="600" border="1" align="center">

		<tr>
			<td width="192">Username</td>
			<td width="392"><form:input path="username" /> <form:errors
				path="username" /></td>
		</tr>
		<tr>
			<td>Password</td>
			<td><form:password path="password" /> <form:errors
				path="password" /></td>
		</tr>
		<tr>
			<td>Nome</td>
			<td><form:input path="nome" /> <form:errors path="nome" /></td>
		</tr>
		<tr>
			<td>Cognome</td>
			<td><form:input path="cognome" /> <form:errors path="cognome" />
			</td>
		</tr>
		<tr>
			<td>Email</td>
			<td><form:input path="email" /> <form:errors path="email" /></td>
		</tr>
		<tr>
			<td>Profilo</td>
			<td><select name="idProfilo" id="idProfilo">
				<c:forEach items="${profili}" var="item">
					<option value="<c:out value="${item.idProfilo}"/>"
						<c:if test="${item.idProfilo==param.idProfilo}">selected="selected"</c:if>><c:out
						value="${item.descrizione}" /></option>
				</c:forEach>
			</select> <!--form:input path="statoTicket" id="statoTicket"  /--> <!--form:errors path="statoTicket"/-->
			</td>
		</tr>
		

		<tr>
			<td colspan="2"><input type="submit" name="selezionaProgetti" id="button"
				value="Next"
				/>
			<!-- input type="button" name="Annulla" id="Annulla" value="Annulla" /></td-->
		</tr>
	</table>
</form:form>
</body>
</html>